-- GENERATED SPELL FOR [Zuluhed the Whacked] --


function spell0_11980(pUnit, Event) --@Demon Portal,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(38876,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_11980', 1, 1)
end

function spell1_11980(pUnit, Event) --@Nether Infusion,Self--
pUnit:FullCastSpellOnTarget(38853,pUnit)
pUnit:RegisterEvent('Sorts_11980', 660, 1)
end

function Sorts_11980(pUnit, Event)
local choix_sorts_11980 = math.random(0, 1)
if choix_sorts_11980 == 0 then
pUnit:RegisterEvent('spell0_11980', 1, 1)
end
if choix_sorts_11980 == 1 then
pUnit:RegisterEvent('spell1_11980', 1, 1)
end
end

function mob11980_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11980', math.random(1500, 3000), 1)
end

function mob11980_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11980_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11980_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11980, 1, 'mob11980_Action')
RegisterUnitEvent(11980, 2, 'mob11980_Leave')
RegisterUnitEvent(11980, 3, 'mob11980_Kill')
RegisterUnitEvent(11980, 4, 'mob11980_Die')
